package com.geek.gaojimaphero.entity;

/*
 *@Date 2025/11/19
 *@Author wangpeng
 *@Description TODO
 */

import java.time.LocalDateTime;
import java.util.List;

public class Hero {
    private Integer id;
    private String name;
    private String alias;
    private String title;
    private Integer attack;
    private Integer defense;
    private Integer magic;
    private Integer difficulty;
    private String selectAudio;
    private String banAudio;
    private String keywords;
    private String iconImg;
    private String bgImg;
    private LocalDateTime createdAt;
    private LocalDateTime updatedAt;
    private Integer isDeleted;

    // 关联属性
    private List<Role> roles;
    private List<Goods> goods;
    private List<Skill> skills;

    public Hero() {}

    // Getter和Setter方法
    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getAlias() {
        return alias;
    }

    public void setAlias(String alias) {
        this.alias = alias;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public Integer getAttack() {
        return attack;
    }

    public void setAttack(Integer attack) {
        this.attack = attack;
    }

    public Integer getDefense() {
        return defense;
    }

    public void setDefense(Integer defense) {
        this.defense = defense;
    }

    public Integer getMagic() {
        return magic;
    }

    public void setMagic(Integer magic) {
        this.magic = magic;
    }

    public Integer getDifficulty() {
        return difficulty;
    }

    public void setDifficulty(Integer difficulty) {
        this.difficulty = difficulty;
    }

    public String getSelectAudio() {
        return selectAudio;
    }

    public void setSelectAudio(String selectAudio) {
        this.selectAudio = selectAudio;
    }

    public String getBanAudio() {
        return banAudio;
    }

    public void setBanAudio(String banAudio) {
        this.banAudio = banAudio;
    }

    public String getKeywords() {
        return keywords;
    }

    public void setKeywords(String keywords) {
        this.keywords = keywords;
    }

    public String getIconImg() {
        return iconImg;
    }

    public void setIconImg(String iconImg) {
        this.iconImg = iconImg;
    }

    public String getBgImg() {
        return bgImg;
    }

    public void setBgImg(String bgImg) {
        this.bgImg = bgImg;
    }

    public LocalDateTime getCreatedAt() {
        return createdAt;
    }

    public void setCreatedAt(LocalDateTime createdAt) {
        this.createdAt = createdAt;
    }

    public LocalDateTime getUpdatedAt() {
        return updatedAt;
    }

    public void setUpdatedAt(LocalDateTime updatedAt) {
        this.updatedAt = updatedAt;
    }

    public Integer getIsDeleted() {
        return isDeleted;
    }

    public void setIsDeleted(Integer isDeleted) {
        this.isDeleted = isDeleted;
    }

    public List<Role> getRoles() {
        return roles;
    }

    public void setRoles(List<Role> roles) {
        this.roles = roles;
    }

    public List<Goods> getGoods() {
        return goods;
    }

    public void setGoods(List<Goods> goods) {
        this.goods = goods;
    }

    public List<Skill> getSkills() {
        return skills;
    }

    public void setSkills(List<Skill> skills) {
        this.skills = skills;
    }

    @Override
    public String toString() {
        return "Hero{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", alias='" + alias + '\'' +
                ", title='" + title + '\'' +
                ", attack=" + attack +
                ", defense=" + defense +
                ", magic=" + magic +
                ", difficulty=" + difficulty +
                ", selectAudio='" + selectAudio + '\'' +
                ", banAudio='" + banAudio + '\'' +
                ", keywords='" + keywords + '\'' +
                ", iconImg='" + iconImg + '\'' +
                ", bgImg='" + bgImg + '\'' +
                ", createdAt=" + createdAt +
                ", updatedAt=" + updatedAt +
                ", isDeleted=" + isDeleted +
                ", roles=" + (roles != null ? roles.size() : 0) +
                ", goods=" + (goods != null ? goods.size() : 0) +
                ", skills=" + (skills != null ? skills.size() : 0) +
                '}';
    }
}

